/*
 * PWM.h
 *
 * Created: 11/15/2012 6:32:50 PM
 *  Author: Hp-Minion
 */ 


#ifndef PWM_H_
#define PWM_H_
/*****************************************************************************************/
/*
	INCLUDES
*/	
		#include "General.h"

/*****************************************************************************************/
/*
	DEFINES
*/	
		#define	TOP_DUTY 255
		#define BOTTOM_DUTY 0
		#define DUTY_PASS 1
		#define DUTY_PRESCALER 200

/*****************************************************************************************/
/*
	VARIABLES
*/	

		volatile unsigned int solution;
		volatile unsigned int sol;
/*****************************************************************************************/
/*
	FUNCTION PROTOTYPES
*/	
		extern void PWM_vInit(void);
		unsigned int PWM_Solution(unsigned int);
		extern void PWM_vHandler(void);
		
/*****************************************************************************************/
#endif /* PWM_H_ */